package com.company.ywj;

public class Result {
    private String ranking;
    private String color;
    private String name;
    private boolean judge;

    public Result(String ranking, String color, String name) {
        this.ranking = ranking;
        this.color = color;
        this.name = name;
        this.judge = true;
    }

    public Result() {
        this.ranking = "";
        this.color = "";
        this.name = "";
        this.judge = true;
    }

    public String getRanking() {
        return ranking;
    }

    public void setRanking(String ranking) {
        this.ranking = ranking;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean getJudge() {
        return judge;
    }

    public void setJudge(boolean judge) {
        this.judge = judge;
    }

    @Override
    public String toString() {
        return "Result{" +
                "ranking='" + ranking + '\'' +
                ", color='" + color + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
